package com.vhall.component.controller.filter.facade;

import com.vhall.component.entity.filter.vo.*;
import com.vhall.component.entity.page.vo.PageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author longzhen.gong
 * @date 2021/7/2 14:08
 */
@FeignClient(name = "FilterWordsAdmFacade", path = "/v4/filterwords/admin")
public interface FilterWordsAdmFacade {


    @GetMapping("/list")
    PageVO<FilterWordsListRspVO> list(@Validated FilterWordsListReqVO reqVo);

    @PostMapping("/create")
    FilterWordsCreateRspVO create(@Validated FilterWordsCreateReqVO req);

    @PostMapping("/update")
    Boolean update(@Validated FilterWordsUpdateReqVO req);


    @PostMapping("/delete")
    Integer delete(@Validated FilterWordsDeleteReqVO filterWordsDeleteReqVo);

    @PostMapping("/import")
    FilterWordsImportRspVO importFilterWords(@Validated FilterWordsAdmImportReqVO filterWordsAdmImportReqVo);
}
